package com.bangdao.app.jetpacktest.architecture.mvp.view;

import com.bangdao.app.jetpacktest.R;
import com.bangdao.app.jetpacktest.architecture.mvp.model.User;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

class UserAdapter extends BaseQuickAdapter<User, BaseViewHolder> {
    public UserAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder viewHolder, User user) {
        viewHolder.setText(R.id.tv_user_name, "姓名：" + user.getName());
        viewHolder.setText(R.id.tv_user_age, "年龄：" + user.getAge());
    }
}
